using GLib;


public class loadtime: GLib.Object
{

	static int main(string[] args)
	{
		Rob.Rules.Time t = new Rob.Rules.Time();
		GLib.KeyFile kf = new GLib.KeyFile();
		try
		{
			kf.load_from_file("time.conf", 0);
			t.load(kf, "time_1");
		}
		catch ( GLib.KeyFileError e)
		{
			stderr.printf("KeyFileError\n");
			return 1;

		}
		t.interval = 50;

		catch ( GLib.FileError e2 )
		{
			stderr.printf("KeyError\n");
			return 1;
		}
		stdout.printf(" %s %s %i %i %i %p\n",t.name, t.title, t.interval, t.starttime, t.endtime, kf );
		return 0;
	}
}
